home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
130 MIDI Tool Box
/
130 MIDI Tool Box.iso
/
mqupdate
/
expr.mbt
< prev
next >
Wrap
Text File
|
1990-06-22
|
801b
|
32 lines
;=============================================================================
; This example illustrates how to use logical expressions
;
; Copyright 1989 by DMA Software
; All rights reserved
;=============================================================================
echo off
set i 0
printformat "%ld"
while i >= 0 & i < 16
if i > 6 & i < 9
print i "is greater than 6, but less than 9"
else
if i <= 6 | i == 10
print i "is less than or equal to 6 or exactly equal to 10"
else
print i "is == 9 or greater than 10"
endif
endif
add i 1
end
if i == 16
print i "is the terminal loop value"
endif
;
; Looking at the sysex buffer
;
set buffer[0] 0xF0
if buffer[0] == 0xF0
print "There's a sysex in the buffer"
endif